package com.quartz.zy.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author zhangyi
 * @date 2018/12/20 11:04
 */
public class MyJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("我的定时任务执行,我在配置文件里面配置了1分钟执行一次"+new Date(System.currentTimeMillis()));
    }
}
